package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Endpoint extends AbstractMethod {
    private static final String name = "endpoint";
    /**
    Name of the endpoint to be used, as is defined in the configuration file.
    **/
    /**
    要使用的端点的名称，如配置文件中所定义。
    **/
    public Endpoint(String endpoint) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new SingleQuotesArg(endpoint));


    }
}
